using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Workspace
{
    /// <summary>
    /// <para>Create Feature Dataset</para>
    /// <para>Creates a feature dataset in the output location—an existing enterprise,  file, or mobile geodatabase.</para>
    /// <para>在输出位置（现有企业级地理数据库、文件地理数据库或移动地理数据库）中创建要素数据集。</para>
    /// </summary>    
    [DisplayName("Create Feature Dataset")]
    public class CreateFeatureDataset : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateFeatureDataset()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_out_dataset_path">
        /// <para>Output Geodatabase</para>
        /// <para>The enterprise, file, or mobile geodatabase in which the output feature dataset will be created.</para>
        /// <para>将在其中创建输出要素数据集的企业级地理数据库、文件地理数据库或移动地理数据库。</para>
        /// </param>
        /// <param name="_out_name">
        /// <para>Feature Dataset Name</para>
        /// <para>The name of the feature dataset to be created.</para>
        /// <para>要创建的要素数据集的名称。</para>
        /// </param>
        public CreateFeatureDataset(object _out_dataset_path, object _out_name)
        {
            this._out_dataset_path = _out_dataset_path;
            this._out_name = _out_name;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Create Feature Dataset";

        public override string CallName => "management.CreateFeatureDataset";

        public override List<string> AcceptEnvironments => ["MResolution", "MTolerance", "XYResolution", "XYTolerance", "ZResolution", "ZTolerance", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_out_dataset_path, _out_name, _spatial_reference, _out_dataset];

        /// <summary>
        /// <para>Output Geodatabase</para>
        /// <para>The enterprise, file, or mobile geodatabase in which the output feature dataset will be created.</para>
        /// <para>将在其中创建输出要素数据集的企业级地理数据库、文件地理数据库或移动地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_dataset_path { get; set; }


        /// <summary>
        /// <para>Feature Dataset Name</para>
        /// <para>The name of the feature dataset to be created.</para>
        /// <para>要创建的要素数据集的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Feature Dataset Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_name { get; set; }


        /// <summary>
        /// <para>Coordinate System</para>
        /// <para>The spatial reference of the output feature dataset. On the Spatial Reference Properties dialog box, you can select, import, or create a new coordinate system. To set aspects of the spatial reference, such as the x,y-, z-, or m-domain, resolution, or tolerance, use the Environments dialog box.</para>
        /// <para>输出要素数据集的空间参考。在空间参考属性对话框中，可以选择、导入或创建新的坐标系。要设置空间参考的各个方面，例如 x、y、z 或 m 属性域、分辨率或容差，请使用“环境”对话框。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Coordinate System")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _spatial_reference { get; set; } = null;


        /// <summary>
        /// <para>Updated Geodatabase</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataset { get; set; }


        public CreateFeatureDataset SetEnv(object MResolution = null, object MTolerance = null, object XYResolution = null, object XYTolerance = null, object ZResolution = null, object ZTolerance = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(MResolution: MResolution, MTolerance: MTolerance, XYResolution: XYResolution, XYTolerance: XYTolerance, ZResolution: ZResolution, ZTolerance: ZTolerance, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}